/*!
* @Author: luoob
* @Date: 2021-03-29 21:59:00
* @Last Modified by: luoob
* @Last Modified time: 2021-03-29 21:59:00
* @Instruduction: 服务配置
*/
const API_PROD_HOST = ''                                                // 正式环境主机
const API_DEV_HOST = ''                                                 // 测试环境主机(淘宝，mockjs数据)
const PREFIX = '/v1'                                                    // 代理前缀
const TAOBAO_ID = '/taobao'                                             // 淘宝mockjs id 其他本地代理前缀(或者不要)
const mockProduction = true                                             // 是否模仿正式环境

// API_DEV_HOST
let HOST = process.env.NODE_ENV === 'production' ? API_PROD_HOST : ''
let HOST_PREFIX = process.env.NODE_ENV === 'production' ? PREFIX : TAOBAO_ID

if (mockProduction) {
    HOST = ''
    HOST_PREFIX = PREFIX
}

export {
    API_PROD_HOST,
    API_DEV_HOST,
    HOST,
    HOST_PREFIX
}
